package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.IUpgradeApkDAO;
import org.jsbd.boss.domian.UpgradeApkBean;
import org.springframework.stereotype.Repository;

@Repository("upgradeApkDao")
public class UpgradeApkDAOImpl extends CrackBaseDao implements IUpgradeApkDAO {

	@Override
	public UpgradeApkBean selectByMark(String mark) {
		return (UpgradeApkBean) super.queryForObject("qy_upgrade_apk.SELECT_BY_MARK", mark);
	}

	@Override
	public void upgradeApk(UpgradeApkBean uab) {
		super.insert("qy_upgrade_apk.UPGRADE_APK", uab);
	}

	@Override
	public List<UpgradeApkBean> selectAll() {
		return super.queryForList("qy_upgrade_apk.SELECT_ALL");
	}

	@Override
	public int deleteByMark(String mark) {
		return super.delete("qy_upgrade_apk.DELETET_BY_MARK", mark);
	}

}
